
const { ccclass } = cc._decorator;

@ccclass
export class LifeBox extends cc.Component {

    onBeginContact(contact, selfCollider, otherCollider) {
        if (otherCollider.node.name == "ballSprite") {
            selfCollider.node.destroy();
        }
    }
}